import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './utils/veeValidate'
import Alert from '@/components/modules/alert/index'
import Pop from '@/components/modules/pop/index'
import filters from '@/utils/filter'
import directives from '@/utils/directives'
import '@/mock'
Vue.config.productionTip = false
Vue.use(Alert)
Vue.use(Pop)
// 自定义过滤器
Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key])
})

// 自定义指令
Object.keys(directives).forEach((key) => {
  Vue.directive(key, directives[key])
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
